<?php
// Header 
$this->set('title_for_layout', __("Danh sách tin", true));

$this->left_menu = 'menu/'.$this->params['controller'];
$params = array(
	'root'	=>	$this->params['named']['root']
);
if (isset($this->params['plugin'])) {
	$params['plugin'] = $this->params['plugin'];
} else {
	$params['plugin'] = null;
}
// Load Css

// Load Javascript

?>
<style>
.alias {
	font-style:italic;
}
.field_name {
	font-weight:bold;
}
</style>
<?php echo $session->flash()?>

<div class='right_content'>
<div class="title_left_sidebar">
	<div class="text_title">
		<?php __("Liệt kê tất cả bài viết")?>
	</div>
	<div class="create_edit">
		<div class="bd_title"></div>
		<div class="item_create">
			<div class="item_menu"><?php echo $html->image('toolbar/add.png', array('alt'=>__('Tạo bài viết mới',true), 'align'=>'left')) ?></div>
			<div class="category_mn"><a href="<?php echo $html->url($params + array('action'=>'add'))?>" id='add_new_category_link'>
			
		<?php __("Tạo bài viết mới");?></a></div>
		
			<div class="clear"></div>
		</div>
		<div class="bd_title"></div>
	</div>
	
</div>

<div class="blank5"></div>

<!-- Begin tree table -->
<?php
if (!isset($configs['View'])) {
	$configs['View'] = array(
		'type'	=>	'details',
		'details'	=>	array(
			'show_image'	=>	false
		),
		'thumbnail'	=>	array(
			'has_thumbnail'	=>	true
		)
	);
}
?>
<?php echo $this->element('views/'.$configs['View']['type'], array('plugin' => 'news', 'params' => $params, 'view_options' => $configs['View']));?>
<!-- End tree table -->

</div><?php //echo $this->element('sql_dump')?>